/**
 * order status
 * ========================================
 * js switch case ===
 */

export default {
  ALL: -1,
  WAIT_PUSH: 0,
  WAIT_PULL: 1,
  WAIT_RECEIVING: 2,
  FINISH: 10,
  statusText: (status) => {
    switch (status) {
      case -1:
        return '全部'
      case 0:
        return '待入库'
      case 1:
        return '待出库'
      case 2:
        return '待收货'
      case 10:
        return '已完成'
    }
  }
}
